#include <stdio.h>

int *find_largest(int a[], int n);

int main(void)
{
    int n = 5, a[n];
    int* j;

    printf("Please input %d numbers: \n", n);

    for (int i = 0; i < n; i++)
      scanf(" %d", &a[i]);
//  int a[5] = {1, 2, 3, 4, 5};

    j = find_largest(a, n);

    printf("Largest: %d", *j);

    return 0;
}

int* find_largest(int a[], int n)
{
    int* largest = &a[0];

    for (int i = 1; i < n; i++)
    {
        if (a[i] > *largest)
            largest = &a[i];
    }
    return largest;
}